// <copyright file="FeedXPath.cs" company="Clever Software">
// Copyright (c) 2013, 2014 All Right Reserved, http://www.cleversoftware.by
//
// This source is subject to the Microsoft Permissive License.
// Please see the License.txt file for more information.
// All other rights reserved.
//
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY 
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// </copyright>
// <author>Clever Software</author>
// <email>info@cleversoftware.by</email>
// <date>2014-02-04</date> 
// <summary>CleverCMS source code</summary>

//All propertiex should be virtual according http://msdn.microsoft.com/en-us/library/dd468057.aspx

namespace CleverCMS.Blog.Data.Entities
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;

    public class FeedXPath
    {
        public FeedXPath()
        {
        }

        [Key]
        [Required]
        public virtual int FeedXPathId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual int FeedId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string ArticleXPath { get; set; }

        [ForeignKey("FeedId")]
        public virtual Feed Feed { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual ICollection<XPathRemove> XPathRemove { get; set; }
    }
    
}